from django.db import models

# Create your models here.
class Washers(models.Model):
    wmid = models.CharField('设备标识', max_length=32, primary_key=True)
    wmstate = models.BooleanField('状态', default=False)
    wmupdate_time = models.DateTimeField('更新时间', auto_now=True)
    wmcreate_time = models.DateTimeField('创建时间', auto_now_add=True)
    #指定表名为washers
    class Meta:
        db_table = 'washers'


